package passwordReset

import org.springframework.cloud.contract.spec.Contract;

Contract.make {
    request {
        method "POST"
        url "/api/password-reset"
        body("""
            {
                "email":"734398501@qq.com"
            }
        """)
        bodyMatchers {
            jsonPath('$.email', byRegex(email()))
        }
        headers {
            header("Content-Type", "application/json;charset=UTF-8")
        }
    }
    response {
        status 201

    }
}